import CommonApi from './common'

class DataAuditApi extends CommonApi {
    constructor() {
        super()
        this.scope = '/quality/dataAudit'
    }
    getRuleList() {
        const path = this.resolvePath('/getRuleList')
        return this.post(path)
    }
    execute(data) {
        const path = this.resolvePath('/immediateExecution')
        return this.post(path, data)
    }
    close(data) {
        const path = this.resolvePath('/updateStatus')
        return this.post(path, data)
    }
    orderSend(data) {
        const path = this.resolvePath('/workOrderIssue')
        return this.post(path, data)
    }
}

export default DataAuditApi
